import { useState, useEffect } from "react";
import { Button } from "antd";

function Head() {
  const [count, setCount] = useState(0);

  useEffect(() => {
    console.log(count);
  }, [count]);

  return (
    <>
      <Button type="primary">头部</Button>

      <div>aaaaaaaaaa</div>
    </>
  );
}

export default Head;
